﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Header.Master" AutoEventWireup="true" CodeBehind="Wall.aspx.cs" Inherits="geekmeet.Wall" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js" type="text/javascript"></script>
    
    <script src="../Scripts/geekmeet.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="mainWrapper">
    
    
       <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="breadcrumbs">
        </asp:SiteMapPath>
    
        <h1><asp:Label ID="lblHeaderUsername" runat="server" Text="Label"></asp:Label></h1>
    <div id="updateableContainer">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div id="topSection">
            <h3>Nytt inlägg</h3>
            <asp:TextBox ID="txtMessageText" runat="server" Height="86px" Width="268px" 
                        TextMode="MultiLine" EnableViewState="False" MaxLength="200"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Du måste skriva något för att kunna skicka ett gästboksinlägg." ControlToValidate="txtMessageText"></asp:RequiredFieldValidator>
            <br />
            <asp:Button ID="btnSubmit" runat="server" Text="Skicka" onclick="btnSubmit_Click" />
        </div>
        <div id="wallMessages">
            <div style="display:none"> 
                <div id="removeWallDialog" title="Radera gästboksinlägg">Vill du verkligen ta bort detta inlägg? </div>
            </div>
            <asp:Repeater ID="wallRepeater" runat="server">
                <ItemTemplate>
                     <div class="wallPost">
                      
                      <table style="width:100%;">
                        <tr>
                            <td width=60 rowspan="2" style="vertical-align:top">
                                 <img src="/images/profilePictures/<%#DataBinder.Eval(Container.DataItem, "FromID") %>.jpg"
                                class="messagesContactImageSmall" />
                            </td>
                            <td>
                                <div class="wallPostHeader">
                                <%#DataBinder.Eval(Container.DataItem, "FromUserName")%>&nbsp;
                                <span class="smallDate"><%#Eval("PostDate","{0:yyyy-MM-dd hh:mm}")%></span>
                                </div>
                                <div class="wallRemoveIconDiv">
                                    <a title="Radera inlägg" href="" id="dremoveWallLink" onclick='showRemoveWallDialog(<%#DataBinder.Eval(Container.DataItem, "MessageID") %>); return false;'>
                                    <img src="../images/icons/cross.png" />
                                    </a>
                                </div>
                                 <br />
                                 <div class="wallMessage">
                                 <%#Eval("MessageText")%>
                            </div>
                        </div>
                            </td>
                            
                           
                        </tr>
                       
                       
                    </table>
     
                       
                    </div>

            </ItemTemplate>
        </asp:Repeater>
        </div>
            </ContentTemplate>
            </asp:UpdatePanel>
        
    </div>
    </div>

</asp:Content>
